blob: dc28190497a79bff1813d7c0b32b0efe6a55783b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef OPTIONS_H
#define OPTIONS_H
#include <bu/optparser.h>
class Options : public Bu::OptParser
{
public:
Options( int argc, char *argv[] );
virtual ~Options();
int getScale() const { return iScale; }
int getRadix() const { return iRadix; }
private:
int selfTest( Bu::StringArray aArgs );
int textPrimes( Bu::StringArray aArgs );
int isPrime( Bu::StringArray aArgs );
int convert( Bu::StringArray aArgs );
int execute( Bu::StringArray aArgs );
int sum( Bu::StringArray aArgs );
int version( Bu::StringArray aArgs );
int grind( Bu::StringArray aArgs );
int iScale;
int iRadix;
private:
void printError( const Bu::String &sMsg );
void printNumber( const class Number &rNum );
};
#endif
|